/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import factorysimulation.MachinigCenter;
import statistics.Event;

/**
 *
 * @author Moustafa Samir
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        MachinigCenter machinigCenter = new MachinigCenter(0);
        machinigCenter.start();
        for (int i = 0;i< 1000;i++) {
            Event event = machinigCenter.performEvent();
            double time = machinigCenter.nextEvent();
            System.out.println(event.getType()+"at time: "+event.getTime());
        }
    }
}
